package com.lu.api.article.demote;

import com.lu.api.article.IApArticleClient;
import com.lu.model.article.dto.ArticleDto;
import com.lu.model.common.dtos.ResponseResult;
import com.lu.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

/**
 * 自己试着模拟服务降级
 */


@Component
public class IApArticleClientDemote implements IApArticleClient {

    /**
     * 保存app文章
     * @param dto
     * @return
     */
    @Override
    public ResponseResult saveArticle(ArticleDto dto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR, "获取数据失败");
    }
}
